import 'package:flutter/material.dart';

// 用户信息页
class UserInfoPage extends StatefulWidget {
  const UserInfoPage({super.key});

  @override
  State<UserInfoPage> createState() => _UserInfoPageState();
}

class _UserInfoPageState extends State<UserInfoPage> {
  @override
  Widget build(BuildContext context) {
    Widget about = Container(
        width: 500,
        height: 70,
        margin: const EdgeInsets.all(2),
        decoration: BoxDecoration(
            // color: Colors.black,
            border: Border.all(color: Colors.yellow, width: 3),
            borderRadius: const BorderRadius.all(Radius.circular(5))),
        child: const Text(
          "hello",
          style: TextStyle(fontSize: 40),
        ));

    List<Widget> viewList = [];
    for (int i = 0; i < 10; i++) {
      viewList.add(about);
    }
    return Scaffold(
        body: ListView(
      scrollDirection: Axis.vertical,
      children: viewList,
    ));
  }
}
